<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>table_1_CSS.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<style type="text/css">
		body{text-align: center;}
		
		table{
			border-collapse: collapse;
		}
		td{
			border:1px solid red;
		}
		.altrow{
			background: yellow;
		}		
	</style>
	<script type="text/javascript" src="jquery-1.6.js"></script>
  	<script type="text/javascript">
  		$(document).ready(function(){

			//var ot=$("table tr td:odd");

			//ot.addClass("altrow");

			$("table tr:even").addClass("altrow");

  	  	});
  	</script>
  </head>

  <body>
    <table>
    	<tr>
    		<td>你好</td>
    		<td>很好</td>
    	</tr>
    	
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    	<tr>
    		<td>Hello</td>
    		<td>world</td>
    	</tr>
    </table>
  </body>
</html>
